package com.topscore.uke.mvp.contractors;

import com.topscore.uke.entities.PerformanceData;
import com.topscore.uke.mvp.BaseContractor;
import com.topscore.uke.mvp.model.BaseHttpListener;
import com.topscore.uke.mvp.views.BaseView;
import com.topscore.uke.network.BaseResponse;
import com.topscore.uke.network.retrofit.ApiService;
import com.topscore.uke.network.retrofit.NetClient;

import lecho.lib.hellocharts.model.ComboLineColumnChartData;

/**
 * Created by 71468 on 2017/10/20.
 */

public interface GetTeamPerformanceContractor extends BaseContractor {
    interface Model {
        ApiService mService = NetClient.getInstance().net().create(ApiService.class);

        void getPerformanceInMonth(String month);

        void getPerformanceInYear(String year);

        Model setCallBack(CallBack callBack);
    }

    interface View extends BaseView {
        void onGetPerformanceSuccess(PerformanceData performanceData);
        void onGetPerformanceCharDataSuccess(ComboLineColumnChartData chartData);
    }

    interface Presenter {
        void getPerformanceInYear(String year, String groupCode);

        void getPerformanceInMonth(String month, String groupCode);
    }

    interface CallBack extends BaseHttpListener {
        void onGetDataSuccess(BaseResponse<PerformanceData> response);
    }
}
